﻿<shared:UserControlBase x:Class="HP.Cachalote.WPF.UserControls.SystemButtonUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:HP.Cachalote.WPF.Shared"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <!-- Minimize Button -->
            <ColumnDefinition Width="Auto" />
            <!-- Maximize or Restore Button -->
            <ColumnDefinition Width="Auto" />
            <!-- Close Button -->
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Button Name="BtnMinimize" Width="42" Height="34" ToolTip="Minimize" Style="{StaticResource ImageButton}"  Click="BtnMinimize_Click" />
        <Button Grid.Column="1"  Name="BtnMaximize" Width="42" Height="34" ToolTip="Maximize" Style="{StaticResource ImageButton}"  Click="BtnMaximize_Click" />
        <Button Grid.Column="1"  Name="BtnRestore" Width="42" Height="34" ToolTip="Restore" Style="{StaticResource ImageButton}" Visibility="Hidden"  Click="BtnRestore_Click" />
        <Button Grid.Column="2"  Name="BtnClose" Width="42" Height="34" ToolTip="Close" Style="{StaticResource ImageButton}"  Click="BtnClose_Click" />
    </Grid>
</shared:UserControlBase>
